#ifndef ITEM_MANAGE
#define ITEM_MANAGE

#include "../item/item.h"
#include <vector> 
#include <string>
#include <fstream>

class itemManageSyatem
{
public:
	bool additem(item target);
	bool delitem(item* ptr);
	bool finditem(std::string ID,item* &ptr);
	std::vector<item*> gettarget(std::string name);
	std::vector<item*> gettarget(int maxinventory);
	std::vector<item> items;
	void loaddatabase(std::string location);
	void unloaddatabase();
	std::string databaselocation;
};

bool findConfidence(std::string,item,float&);

#endif